package com.yingjie.yingjieorder.model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单的菜品表
 * @TableName order_food
 */
public class OrderFood implements Serializable {
    /**
     * 
     */
    private Integer orderFoodId;

    /**
     * 0 禁用；1启用
     */
    private Integer orderFoodStatus;

    /**
     * 菜品名称
     */
    private String foodName;

    /**
     * 菜品图片
     */
    private String foodImg;

    /**
     * 备注
     */
    private String foodDes;

    /**
     * 菜品类型
     */
    private Integer foodTypeId;

    /**
     * 菜品价格
     */
    private BigDecimal foodPrice;

    /**
     * 用户id
     */
    private Integer orderUserId;

    /**
     * 厨房id
     */
    private Integer orderKitchenId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 下单数量
     */
    private Integer foodNum;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getOrderFoodId() {
        return orderFoodId;
    }

    /**
     * 
     */
    public void setOrderFoodId(Integer orderFoodId) {
        this.orderFoodId = orderFoodId;
    }

    /**
     * 0 禁用；1启用
     */
    public Integer getOrderFoodStatus() {
        return orderFoodStatus;
    }

    /**
     * 0 禁用；1启用
     */
    public void setOrderFoodStatus(Integer orderFoodStatus) {
        this.orderFoodStatus = orderFoodStatus;
    }

    /**
     * 菜品名称
     */
    public String getFoodName() {
        return foodName;
    }

    /**
     * 菜品名称
     */
    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    /**
     * 菜品图片
     */
    public String getFoodImg() {
        return foodImg;
    }

    /**
     * 菜品图片
     */
    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg;
    }

    /**
     * 备注
     */
    public String getFoodDes() {
        return foodDes;
    }

    /**
     * 备注
     */
    public void setFoodDes(String foodDes) {
        this.foodDes = foodDes;
    }

    /**
     * 菜品类型
     */
    public Integer getFoodTypeId() {
        return foodTypeId;
    }

    /**
     * 菜品类型
     */
    public void setFoodTypeId(Integer foodTypeId) {
        this.foodTypeId = foodTypeId;
    }

    /**
     * 菜品价格
     */
    public BigDecimal getFoodPrice() {
        return foodPrice;
    }

    /**
     * 菜品价格
     */
    public void setFoodPrice(BigDecimal foodPrice) {
        this.foodPrice = foodPrice;
    }

    /**
     * 用户id
     */
    public Integer getOrderUserId() {
        return orderUserId;
    }

    /**
     * 用户id
     */
    public void setOrderUserId(Integer orderUserId) {
        this.orderUserId = orderUserId;
    }

    /**
     * 厨房id
     */
    public Integer getOrderKitchenId() {
        return orderKitchenId;
    }

    /**
     * 厨房id
     */
    public void setOrderKitchenId(Integer orderKitchenId) {
        this.orderKitchenId = orderKitchenId;
    }

    /**
     * 订单id
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 订单id
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 下单数量
     */
    public Integer getFoodNum() {
        return foodNum;
    }

    /**
     * 下单数量
     */
    public void setFoodNum(Integer foodNum) {
        this.foodNum = foodNum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderFood other = (OrderFood) that;
        return (this.getOrderFoodId() == null ? other.getOrderFoodId() == null : this.getOrderFoodId().equals(other.getOrderFoodId()))
            && (this.getOrderFoodStatus() == null ? other.getOrderFoodStatus() == null : this.getOrderFoodStatus().equals(other.getOrderFoodStatus()))
            && (this.getFoodName() == null ? other.getFoodName() == null : this.getFoodName().equals(other.getFoodName()))
            && (this.getFoodImg() == null ? other.getFoodImg() == null : this.getFoodImg().equals(other.getFoodImg()))
            && (this.getFoodDes() == null ? other.getFoodDes() == null : this.getFoodDes().equals(other.getFoodDes()))
            && (this.getFoodTypeId() == null ? other.getFoodTypeId() == null : this.getFoodTypeId().equals(other.getFoodTypeId()))
            && (this.getFoodPrice() == null ? other.getFoodPrice() == null : this.getFoodPrice().equals(other.getFoodPrice()))
            && (this.getOrderUserId() == null ? other.getOrderUserId() == null : this.getOrderUserId().equals(other.getOrderUserId()))
            && (this.getOrderKitchenId() == null ? other.getOrderKitchenId() == null : this.getOrderKitchenId().equals(other.getOrderKitchenId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getFoodNum() == null ? other.getFoodNum() == null : this.getFoodNum().equals(other.getFoodNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderFoodId() == null) ? 0 : getOrderFoodId().hashCode());
        result = prime * result + ((getOrderFoodStatus() == null) ? 0 : getOrderFoodStatus().hashCode());
        result = prime * result + ((getFoodName() == null) ? 0 : getFoodName().hashCode());
        result = prime * result + ((getFoodImg() == null) ? 0 : getFoodImg().hashCode());
        result = prime * result + ((getFoodDes() == null) ? 0 : getFoodDes().hashCode());
        result = prime * result + ((getFoodTypeId() == null) ? 0 : getFoodTypeId().hashCode());
        result = prime * result + ((getFoodPrice() == null) ? 0 : getFoodPrice().hashCode());
        result = prime * result + ((getOrderUserId() == null) ? 0 : getOrderUserId().hashCode());
        result = prime * result + ((getOrderKitchenId() == null) ? 0 : getOrderKitchenId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getFoodNum() == null) ? 0 : getFoodNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderFoodId=").append(orderFoodId);
        sb.append(", orderFoodStatus=").append(orderFoodStatus);
        sb.append(", foodName=").append(foodName);
        sb.append(", foodImg=").append(foodImg);
        sb.append(", foodDes=").append(foodDes);
        sb.append(", foodTypeId=").append(foodTypeId);
        sb.append(", foodPrice=").append(foodPrice);
        sb.append(", orderUserId=").append(orderUserId);
        sb.append(", orderKitchenId=").append(orderKitchenId);
        sb.append(", orderId=").append(orderId);
        sb.append(", foodNum=").append(foodNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}